package behavioral.iterator.java;

import behavioral.iterator.MenuItem;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class JuiceMenu {
    List<MenuItem> ls;

    public JuiceMenu() {
        ls = new ArrayList<>();
    }

    public void addItem(String name, String description, double price) {
        ls.add(new MenuItem(name, description, price));
    }

    public Iterator<MenuItem> createIterator() {
        return ls.iterator();
    }

}
